package com.moto.service;

import java.util.List;

import com.moto.bean.PostsFriendBean;
import com.moto.bean.PostsTradeBean;
import com.moto.entity.Posts;

/**
 * 帖子操作Service
 * 
 * @author lixunhui
 *
 */
public interface PostsService {
	/**
	 * 帖子加精，true成功，false失败
	 * 
	 * @param postsId
	 * @return
	 */
	boolean addDigest(String postsId);
	
	/**
	 * 帖子去精，true成功，false失败
	 * @param postsId
	 * @return
	 */
	boolean deleteDegest(String postsId);

	List<PostsFriendBean> getTeamPostsList();

	List<PostsTradeBean> getTradePostsList();

	List<Posts> getPicPosts();

	List<Posts> getDiscoverPosts();

	int insert(Posts posts);

	Posts getPostsById(String postsId);

	int deleteByPrimaryKey(String postsId);

	int updatePosts(String postsId, String newPic, String newPicDesc, String newPicSize);

	int updateByPrimaryKeySelective(Posts posts);
	
}
